package com.example.shop.config;

/**
 * @projectName: travel
 * @package: com.example.travel.config
 * @className: MybatisPlusConf
 * @author: Liqian
 * @description: TODO
 * @date: 2024/4/14 19:09
 * @version: 1.0
 */
import com.baomidou.mybatisplus.core.config.GlobalConfig;
import com.example.shop.interceptors.MetaHandler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class MybatisPlusConf {
    /**
     * 自动填充功能
     */
    @Bean
    public GlobalConfig globalConfig() {
        GlobalConfig globalConfig = new GlobalConfig();
        globalConfig.setMetaObjectHandler(new MetaHandler());
        return globalConfig;
    }

}